//
//  User.swift
//  youpeng
//
//  Created by 邓书哲 on 2022/12/10.
//

import Foundation
import HandyJSON

/// UserDetail
// MARK: - UserDetail
struct UserDetail: Codable {
    let baseInformation: UserBrief
    let educationInformation: EducationInformation
    let platformInformation: PlatformInformation
}

/// UserBrief
// MARK: - UserBrief
struct UserBrief: Codable {    
    /// 用户Id
    let id: Int
    /// 用户名
    let name: String
    /// 用户头像
    let avatar: String
    /// IP属地
    let ipLocation: String
    ///  签名
    let signature: String
    /// 生日
    let birthday: String
    /// 性别
    let gender: String
    /// 家乡
    let hometown: String
}

/// EducationInformation
// MARK: - EducationInformation
struct EducationInformation: Codable {
    /// 学历验证照片
    let certificate: String
    /// 学院
    let college: String
    /// 学位
    let degree: String
    /// 年级
    let grade: String
    /// 专业
    let major: String
    /// 学校
    let school: String
    let trueName: String
}

/// PlatformInformation
// MARK: - PlatformInformation
struct PlatformInformation: Codable {
    /// 参加活动
    let attendedEvent: [EventBrief]
    /// 收藏活动
    let favoritedEvent: [EventBrief]
    /// 粉丝列表
    let followers: [UserBrief]
    /// 粉丝数
    let followersCount: Int
    /// 关注列表
    let following: [UserBrief]
    /// 关注人数
    let followingCount: Int
    /// 浏览历史
    let historires: [EventBrief]
    /// 组织活动
    let organizedEvent: [EventBrief]
}


